package ru.spb.osll.myfit.wikiverifier.distance;

import org.apache.lucene.search.spell.LevensteinDistance;
import org.apache.lucene.search.spell.StringDistance;

public class MyFitDistance {
	public static StringDistance algorithm = new LevensteinDistance();
	
	public static double calc(String s, String t) {
		return (1. - algorithm.getDistance(s, t));
	}
}
